package com.spsy.pay.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spsy.common.core.annotation.Excel;
import com.spsy.common.core.web.domain.BaseEntity;

/**
 * 支付对象 pay
 * 
 * @author arhat
 * @date 2025-01-13
 */
@Builder
public class Pay extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 支付状态 1：未支付 2：已支付 3：退款 */
    @Excel(name = "支付状态 1：未支付 2：已支付 3：退款")
    private Long payStatus;

    /** 商户id */
    @Excel(name = "商户id")
    private String mchId;

    /** app_id */
    @Excel(name = "app_id")
    private String appId;

    /** 回调url */
    @Excel(name = "回调url")
    private String notifyUrl;

    /** 微信支付成功，返回跳转的url */
    @Excel(name = "微信支付成功，返回跳转的url")
    private String callbackUrl;

    /** 总金额 */
    @Excel(name = "总金额")
    private String feeType;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String tradeType;

    /** 签名类型 */
    @Excel(name = "签名类型")
    private String signType;

    /** 随机数 */
    @Excel(name = "随机数")
    private String nonceStr;

    /** 客户端ip地址 */
    @Excel(name = "客户端ip地址")
    private String spbillCreateIp;

    /** 微信显示的产品名称 */
    @Excel(name = "微信显示的产品名称")
    private String bodyInfo;

    /** 产品id */
    @Excel(name = "产品id")
    private String productId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal totalFee;

    /** 第三方相应值 */
    @Excel(name = "第三方相应值")
    private String thirdResultJson;

    /** 第三方支付状态 */
    @Excel(name = "第三方支付状态")
    private String thirdStatus;

    /** 第三方状态码 */
    @Excel(name = "第三方状态码")
    private String thirdCode;

    /** 微信的唯一id */
    @Excel(name = "微信的唯一id")
    private String thirdPrepayId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setMchId(String mchId) 
    {
        this.mchId = mchId;
    }

    public String getMchId() 
    {
        return mchId;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setNotifyUrl(String notifyUrl) 
    {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() 
    {
        return notifyUrl;
    }
    public void setCallbackUrl(String callbackUrl) 
    {
        this.callbackUrl = callbackUrl;
    }

    public String getCallbackUrl() 
    {
        return callbackUrl;
    }
    public void setFeeType(String feeType) 
    {
        this.feeType = feeType;
    }

    public String getFeeType() 
    {
        return feeType;
    }
    public void setTradeType(String tradeType) 
    {
        this.tradeType = tradeType;
    }

    public String getTradeType() 
    {
        return tradeType;
    }
    public void setSignType(String signType) 
    {
        this.signType = signType;
    }

    public String getSignType() 
    {
        return signType;
    }
    public void setNonceStr(String nonceStr) 
    {
        this.nonceStr = nonceStr;
    }

    public String getNonceStr() 
    {
        return nonceStr;
    }
    public void setSpbillCreateIp(String spbillCreateIp) 
    {
        this.spbillCreateIp = spbillCreateIp;
    }

    public String getSpbillCreateIp() 
    {
        return spbillCreateIp;
    }
    public void setBodyInfo(String bodyInfo) 
    {
        this.bodyInfo = bodyInfo;
    }

    public String getBodyInfo() 
    {
        return bodyInfo;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setTotalFee(BigDecimal totalFee) 
    {
        this.totalFee = totalFee;
    }

    public BigDecimal getTotalFee() 
    {
        return totalFee;
    }
    public void setThirdResultJson(String thirdResultJson) 
    {
        this.thirdResultJson = thirdResultJson;
    }

    public String getThirdResultJson() 
    {
        return thirdResultJson;
    }
    public void setThirdStatus(String thirdStatus) 
    {
        this.thirdStatus = thirdStatus;
    }

    public String getThirdStatus() 
    {
        return thirdStatus;
    }
    public void setThirdCode(String thirdCode) 
    {
        this.thirdCode = thirdCode;
    }

    public String getThirdCode() 
    {
        return thirdCode;
    }
    public void setThirdPrepayId(String thirdPrepayId) 
    {
        this.thirdPrepayId = thirdPrepayId;
    }

    public String getThirdPrepayId() 
    {
        return thirdPrepayId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("payStatus", getPayStatus())
            .append("mchId", getMchId())
            .append("appId", getAppId())
            .append("notifyUrl", getNotifyUrl())
            .append("callbackUrl", getCallbackUrl())
            .append("feeType", getFeeType())
            .append("tradeType", getTradeType())
            .append("signType", getSignType())
            .append("nonceStr", getNonceStr())
            .append("spbillCreateIp", getSpbillCreateIp())
            .append("bodyInfo", getBodyInfo())
            .append("productId", getProductId())
            .append("totalFee", getTotalFee())
            .append("thirdResultJson", getThirdResultJson())
            .append("thirdStatus", getThirdStatus())
            .append("thirdCode", getThirdCode())
            .append("thirdPrepayId", getThirdPrepayId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
